package com.my.core.util.geo;

import lombok.Getter;

import java.util.Date;

/**
 * * @Description: 设备状态, 0:离线, 1:在线
 * * @Author: lhp
 * * @Date: 2023-12-20
 * * @Version: V1.0
 */
@Getter
public enum CommonEnum {

    /**
     * 是否 0:否, 1:是
     */
    NOT(0,"否"),
    YES(1, "是"),

    /**
     * 设备状态, 0:离线, 1:在线
     */
    OFFLINE(0, "离线"),
    ONLINE(1, "在线"),

    /**
     * 检测数据处理报警状态, 0:未处理, 1:已处理
     */
    NOT_HANDLE(0, "未处理"),
    HANDLE(1, "已处理"),

    /**
     * 检测数据处理报警状态, 0:未处理, 1:已处理
     */
    DISABLE(0, "禁用"),
    ENABLE(1, "启用"),


    /**
     * 是否记录最后坐标位置, 0:否, 1:是
     */
    NOT_FINALLY_POSITION(0, "否"),
    FINALLY_POSITION(1, "是"),

    /**
     * 园区图片类型  1、风采图片；2、全景图片
     */
    PARK_IMAGE_TYPE_ONE(1, "风采图片"),
    PARK_IMAGE_TYPE_TWO(2, "全景图片"),
    PARK_IMAGE_TYPE_THREE(3, "大图"),

    /**
     * 农机设备状态 1:当日在线；2:当月在线；3:长期离线
     */
    DAY_ONLINE(1, "当日在线"),
    MONTH_ONLINE(2, "当月在线"),
    LONG_TERM_OFFLINE(3, "长期离线"),

    /**
     * 监测数据类型 soil:土壤墒情，weather:天气，rain:雨量，insect:虫情
     */
    TERM_TYPE_SOIL(1, "soil"),
    TERM_TYPE_WEATHER(2, "weather"),
    TERM_TYPE_RAIN(3, "rain"),
    TERM_TYPE_INSECT(4, "insect"),

    GEO_TYPE_CIRCLE(1, "circle"),
    GEO_TYPE_RECTANGLE(2, "rectangle"),
    GEO_TYPE_POLYGON(3, "polygon"),

    MONITOR_QUERY_TYPE_WEATHER(1, "气象"),
    MONITOR_QUERY_TYPE_SOIL(2, "墒情"),
    MONITOR_QUERY_TYPE_WATER(3, "水质"),
    MONITOR_QUERY_TYPE_TAIL(4, "尾水"),
    ;

    private final Integer code;
    private final String text;

    CommonEnum(Integer code, String text) {
        this.code = code;
        this.text = text;
    }

}
